<?php
class action{
    protected $_C = null;
    function __construct($c=null){
        $this->_C=!$c?$GLOBALS['smarty']:$c;
    }
    
    function __destruct(){
        unset($this);
    }
    
    function make_error($msg){
        die($msg);
    }
    
    function index(){
        die('default index');
    }
}
?>